package com.app.mapper;

import com.app.model.StriveFundsModel;
import com.app.model.SystemModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface StriveForFundsMapper extends BaseMapper<StriveFundsModel> {
    List<StriveFundsModel> getListByModel();

    int getCountByModel(StriveFundsModel model);


    List<StriveFundsModel> selectCompletion(StriveFundsModel model);

    int selectCompletionCount(StriveFundsModel model);

    List<StriveFundsModel> selectCompletionByTime(StriveFundsModel model);

    int selectCompletionByTimeCount(StriveFundsModel model);

    Double sum(int departmentId,String year);

    List<SystemModel> getStatusList();

    int selectRed();

    int selectBlue();

    int selectYellow();
}
